<div class="menu">
    <div class="module-content">
        <div class="module-inner">
            <div class="module-inner2">
                <ul class="menu level1">
                    <?php 
		                	foreach ( $items as $item ) :
		                		$active = "";
		                		if($item->getLink() == $routing )		                			
		                			$active = "active";
		                ?>
                    <li class="item53 <?php echo $active;?> parent">
                        <?php if( $item->getIsSystem() == 'Y' ) :?>
                        <a href="<?php if(  $item->getLink() != '' ) echo url_for('@'. $item->getLink(), true ); else echo '#'; ?>" class="orphan item bullet"><span>
                                <?php echo $item->getName(); ?>
                            </span></a>
                        <?php else: ?>
                        <a href="<?php if(  $item->getLink() != '' ) echo url_for('@'. $item->getLink(), true ); else echo '#'; ?>" class="orphan item bullet"><span>
                                <?php echo $item->getName(); ?>
                            </span></a>
                        <?php endif;?>
                        <?php if( $item->hasChild()) : ?>
                        <ul>
                            <?php 	foreach ( $item->getChildren() as $child ): 
                                    if( $child->getPublish() == 'Y'):
                            ?>
                            <li class="<?php echo $active;?>">
                                <a class="orphan item bullet" href="<?php echo url_for('@'. $child->getLink() );?>"><span>
                                        <?php echo $child->getName(); ?>
                                    </span></a>
                            </li>
                            <?php	endif; endforeach; ?>
                        </ul>
                        <?php	endif; ?>
                    </li>
                    <?php endforeach;?>
                </ul>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function(){
        $("#main #mainleft .menu ul.level1 li").hover(function(){
            $(this).addClass("hover");
            $('ul:first', this).css('visibility', 'visible');
        }, function(){
            $(this).removeClass("hover");
            $('ul:first', this).css('visibility', 'hidden');
        });
    });
</script>